#ifndef RECBOXITEM_H
#define RECBOXITEM_H

#include <QWidget>
#include <QEvent>
#include <QObject>
#include <QString>
#include <QPropertyAnimation>
#include <QJsonObject>

namespace Ui {
class RecBoxItem;
}

class RecBoxItem : public QWidget
{
    Q_OBJECT

public:
    explicit RecBoxItem(QWidget *parent = nullptr);
    bool eventFilter(QObject *watched, QEvent *event) ; // 鼠标进入事件
    void setText(const QString &text);
    void setImage(const QString& Imagepath);

    ~RecBoxItem();


private:
    Ui::RecBoxItem *ui;
    QPropertyAnimation *animation;
};

#endif // RECBOXITEM_H
